

function(cxx_library name )

  add_library( ${name} ${ARGN})

  if(MSVC)
    set(file_pdb ${MY_LIB_PATH}/${name}.pdb )
    set_target_properties( ${name}
      PROPERTIES
      COMPILE_FLAGS "${cxx_flags} /Fd\"${file_pdb}\" ")
  endif()

endfunction()

function(cxx_executable name )

  add_executable( ${name} ${ARGN})

  if(MSVC)
    set(file_pdb ${MY_BIN_PATH}/${name}.pdb )
    set_target_properties( ${name}
      PROPERTIES
      COMPILE_FLAGS "${cxx_flags} /Fd\"${file_pdb}\" ")
  endif()

endfunction()
